From 96032442f4b81866b3feb75cd91d9e5e31f222b5 Mon Sep 17 00:00:00 2001 From: "cl349@firebug.cl.cam.ac.uk" Date: Mon, 6 Feb 2006 16:48:34 +0000 Subject: [PATCH] Fix context copy code in NMI handler. Signed-off-by: Christian Limpach --- xen/arch/x86/x86_64/entry.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/x86_64/entry.S b/xen/arch/x86/x86_64/entry.S index e6d745e344..30cc19cc4d 100644 --- a/xen/arch/x86/x86_64/entry.S +++ b/xen/arch/x86/x86_64/entry.S @@ -479,12 +479,12 @@ ENTRY(nmi) jz nmi_in_hypervisor_mode /* Interrupted guest context. Copy the context to stack bottom. */ GET_GUEST_REGS(%rbx) - addq $UREGS_kernel_sizeof,%rbx movl $UREGS_kernel_sizeof/8,%ecx 1: popq %rax - subq $8,%rbx movq %rax,(%rbx) + addq $8,%rbx loop 1b + subq $UREGS_kernel_sizeof,%rbx movq %rbx,%rsp nmi_in_hypervisor_mode: movq %rsp,%rdi -- 2.30.2